import 'package:campus_order/widgets/load_svg_widget.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';

import '../../res/r.dart';
import 'logic.dart';

class SplashPage extends StatelessWidget {
  SplashPage({super.key});

  final SplashLogic logic = Get.put(SplashLogic());

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      resizeToAvoidBottomInset: false,
      backgroundColor: Color.fromRGBO(255, 175, 75, 1),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            LoadSvgWidget(
              R.icLogo,
              width: 120.w,
              height: 120.h,
            ),
            SizedBox(height: 36.h),
            const Text(
              "掌餐",
              style: TextStyle(
                fontSize: 30,
                fontWeight: FontWeight.bold,
              ),
            ),
          ],
        ),
      ),
    );
  }
}